home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-08-23 | 53.4 KB | 1,795 lines |
- Newsgroups: comp.sources.misc
- From: Raymond Chen <rjc@math.princeton.edu>
- Subject: v22i055: wp2x - WordPerfect4.2 to Whatever converter, Part01/03
- Message-ID: <csm-v22i055=wp2x.134742@sparky.imd.sterling.com>
- X-Md4-Signature: e31953a361d436fa0c014519c34dbe7d
- Date: Fri, 23 Aug 1991 18:48:42 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: Raymond Chen <rjc@math.princeton.edu>
- Posting-number: Volume 22, Issue 55
- Archive-name: wp2x/part01
- Environment: Amiga, MS-DOS, UNIX, ANSI-C
-
- wp2x converts WordPerfect4.2 files to any text-based formatting
- language. Configuration files are included for TeX, LaTeX, SCRIPT/GML,
- and troff. WordPerfect 5.x files must be saved in 4.2 format before
- they can be processed by this program. The supplied configuration
- files do not attempt to effect a perfect conversion, because a perfect
- conversion is an unreadable conversion.
-
- Mundane details: Requires an ANSI-like compiler. Has been tested
- on an IBM PC, Amiga, and assorted UNIX boxes (with gcc).
-
- [Packaging concerns:
-
- The file torture.chk has lines longer than 80 characters.
- The file torture.wp has been uuencoded and transmitted as torture.uue.]
-
- Raymond
- ----------
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 1 (of 3)."
- # Contents: HINTS README accent.cfg ascii.cfg dopen.c gml.cfg
- # latex.cfg sample.cfg script.cfg torture.chk torture.uue troff.cfg
- # Wrapped by rjc@tomato on Wed Aug 21 00:08:04 1991
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'HINTS' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'HINTS'\"
- else
- echo shar: Extracting \"'HINTS'\" \(2229 characters\)
- sed "s/^X//" >'HINTS' <<'END_OF_FILE'
- XHints for compiling on various platforms
- X
- X-------------------------------------------------------------------------------
- XUNIX with gcc
- X
- Xgcc -v -ansi -funsigned-char -DUNIX -DWP2X_DIR=\"/usr/local/lib/wp2x\"
- X -o wp2x wp2x.c
- X
- X-------------------------------------------------------------------------------
- XAmiga, courtesy of Dale Gold (dgold@basso.actrix.gen.nz)
- X
- X# Makefile for SAS 5.10 on the Amiga.
- X#
- X# -b0 No base relative addressing
- X# -cu All char unsigned
- X# -L Automatically link
- X# -DNO_CONST compiler does not support `const' qualifier
- Xwp2x: wp2x.c lmkfile
- X lc -b0 -cu -L -DNO_CONST -DAMIGA wp2x.c
- X-------------------------------------------------------------------------------
- XIBM PC / Turbo C 2.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
- X
- Xtcc -mt -G -K -O -f- -r -Z -p -DCdecl=cdecl -DMSDOS wp2x.c
- X
- X -mt = tiny model
- X -G = compile for speed
- X -K = unsigned characters
- X -O = optimize jumps
- X -f- = no floating point
- X -r = register variables
- X -Z = optimize register usage
- X -p = pascal calling convention
- X -DCdecl=cdecl = for tagging variadic functions
- X
- XNote, however, that setting the -O switch means that the killer switch()
- Xstatement causes TC2.0 to act like it's gone out to lunch. It hasn't;
- Xit's chugging away, albeit incredibly slowly.
- X-------------------------------------------------------------------------------
- XIBM PC / MSC 6.0, suggested by Raymond Chen (raymond@math.berkeley.edu)
- X
- Xcl -AS -Gr -J -Ozax -DCdecl=_cdecl -DMSDOS wp2x.c
- X
- X -AS = small model
- X -Gr = use fastcalls calling convention
- X -J = unsigned chars
- X -Ozax = maximum optimization
- X -DCdecl=_cdecl = for tagging variadic functions
- X-------------------------------------------------------------------------------
- XIBM PC / MS C 5.1, suggested by Richard Reiner <rreiner@nexus.yorku.ca>
- X
- Xcl -AS -Gc -J -Ox -DCdecl=cdecl -DMSDOS wp2x.c
- X
- X -AS = small model
- X -Gc = pascal calling convention
- X -J = unsigned chars
- X -Ox = maximum optimization
- X -DCdecl=cdecl = for tagging variadic functions
- END_OF_FILE
- if test 2229 -ne `wc -c <'HINTS'`; then
- echo shar: \"'HINTS'\" unpacked with wrong size!
- fi
- # end of 'HINTS'
- fi
- if test -f 'README' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'README'\"
- else
- echo shar: Extracting \"'README'\" \(3174 characters\)
- sed "s/^X//" >'README' <<'END_OF_FILE'
- XBefore installing, make sure you have...
- X
- X 1. The wp2x.c source code.
- X 2. As many *.cfg files as you feel like using.
- X 3. The manual page (wp2x.1l)
- X 4. An ANSI-C compiler. At a minimum, your compiler must understand...
- X function prototypes
- X enums
- X <stdarg.h>
- X vfprintf
- X
- X
- XInstallation procedure:
- X
- X 0. Decide if you want to have a lib/wp2x directory.
- X
- X If so, define the preprocessor symbol WP2X_DIR to its name,
- X including double-quotation marks. The supplied man page
- X assumes you have chosen the name /usr/local/lib/wp2x.
- X If you choose a different name, or decide not to install
- X one, modify the man page accordingly.
- X
- X 1. Read the section titled PORTABILITY CONCERNS in wp2x.c.
- X Understand it.
- X
- X If your operating system is not UNIX, MS-DOS,
- X or the Amiga, also read dopen.c and (if you want) create
- X a collection of #define's for your operating system, or live
- X with the `generic' configuration.
- X
- X 2. Compile wp2x.c with whatever compiler switches are necessary
- X to accomplish what is described in PORTABILITY CONCERNS.
- X See the file `HINTS' for suggestions. If your operating
- X system is one of those mentioned above, define the symbol
- X `UNIX', `MSDOS' or `AMIGA' (respectively) to your preprocessor.
- X
- X 3. Run the torture test by uudecoding torture.uue into torture.wp,
- X then typing
- X
- X wp2x ascii.cfg torture.wp >torture.out
- X
- X It should produce eight warnings.
- X
- X If torture.out is not identical to torture.chk, find out
- X why and fix it. (Or complain to the author.)
- X
- X 3. Put the sample *.cfg files in a vaguely obvious place.
- X Adjust the directory name in the man page to point to that
- X vaguely obvious place.
- X
- X 4. Put the executable and man page in the places such things are
- X kept on your system.
- X
- XHistory:
- X
- X* The first WP2X was written in Spring 1989 as a volunteer effort for the
- X Princeton University Computing and Information Technology Information
- X Center. (How's that for a mouthful.) People seemed to need to convert
- X WP4.2 files into other stuff, so I figured, hey, why not just hack one
- X up? How hard can it be?
- X
- X It seemed to work fine, for the limited cases thrown at it.
- X
- X* During Summer 1989, some more control codes were added and a
- X request for beta testers posted to the net. Response was mild.
- X
- X* During Summer 1990, yet more control codes were added, and my
- X beta testers from 1989 seemed to have forgotten about me, so the
- X testing phase was abandoned.
- X
- X* During Summer 1991, I made another request for beta testers in
- X comp.text.tex, and responses was decent. The result of this testing
- X phase is what you see before you.
- X
- XAuthor:
- X Raymond Chen (raymond@math.berkeley.edu, rjc@math.princeton.edu)
- X
- XCopying:
- X This program and its supporting files are Copyright 1991 by
- X Raymond Chen. You may distribute the program freely, provided
- X it is distributed in its entirely, including this README file.
- X Any modifications to the program should be clearly marked as such.
- END_OF_FILE
- if test 3174 -ne `wc -c <'README'`; then
- echo shar: \"'README'\" unpacked with wrong size!
- fi
- # end of 'README'
- fi
- if test -f 'accent.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'accent.cfg'\"
- else
- echo shar: Extracting \"'accent.cfg'\" \(4270 characters\)
- sed "s/^X//" >'accent.cfg' <<'END_OF_FILE'
- X# Foreign character support for IBM PCs.
- X#
- X# Written 07/12/91 by Raymond Chen '89.
- X# Bug reports should go to him.
- X#
- X# If you change this file, please make a note of it in the comments.
- X#
- X# Version 0.0: Initial version.
- X# Version 1.0: troff support. 23-Jul-1991
- X# Version 2.0: Raw characters changed to octal escape sequences.
- X
- X# Use the following table of accented characters if your destination
- X# is TeX.
- X
- X'\003'="{\\heartsuit}"
- X'\004'="{\\diamondsuit}"
- X'\005'="{\\clubsuit}"
- X'\006'="{\\spadesuit}"
- X'\007'="{\\bullet}"
- X'\011'="{\\circ}"
- X'\020'="{\\triangleright}"
- X'\021'="{\\triangleleft}"
- X'\022'="{\\updownarrow}"
- X'\024'="{\\P}"
- X'\025'="{\\S}"
- X'\030'="{\\uparrow}"
- X'\031'="{\\downarrow}"
- X'\032'="{\\rightarrow}"
- X'\033'="{\\leftarrow}"
- X'\035'="{\\leftrightarrow}"
- X'\036'="{\\bigtriangleup}"
- X'\037'="{\\bigtriangledown}"
- X
- X'\200'="\\c{C}"
- X'\201'="\\\"u"
- X'\202'="\\'e"
- X'\203'="\\^a"
- X'\204'="\\\"a"
- X'\205'="\\`a"
- X'\206'="{\\aa}"
- X'\207'="\\c{c}"
- X'\210'="\\^e"
- X'\211'="\\\"e"
- X'\212'="\\`e"
- X'\213'="\\\"{\\i}"
- X'\214'="\\^{\\i}"
- X'\215'="\\`{\\i}"
- X'\216'="\\\"A"
- X'\217'="{\\AA}"
- X'\220'="\\'E"
- X'\221'="{\\ae}"
- X'\222'="{\\AE}"
- X'\223'="\\^o"
- X'\224'="\\\"o"
- X'\225'="\\`o"
- X'\226'="\\^u"
- X'\227'="\\`u"
- X'\230'="\\\"y"
- X'\231'="\\\"O"
- X'\232'="\\\"U"
- X'\233'="\hbox{\\rlap/c}"
- X'\234'="{\\it\$}"
- X# A genuine `yen' symbol can be found in one of the LaTeX extension fonts.
- X'\235'="\\rlap=Y"
- X'\236'="Pt"
- X# We really ought to be using the unslanted italic font for this `f'.
- X'\237'="{\\it f\/}"
- X'\240'="\\'a"
- X'\241'="\\'{\\i}"
- X'\242'="\\'o"
- X'\243'="\\'u"
- X'\244'="\\~n"
- X'\245'="\\~N"
- X'\250'="?`"
- X'\252'="{\\lnot}"
- X'\255'="!`"
- X'\340'="{\\alpha}"
- X
- X# This is either a beta or a German ess-zet, depending on context.
- X# I'll assume it's an ess-zet. If you want a beta, change this to
- X# '\341'="{\\beta}"
- X
- X'\341'="{\\ss}"
- X
- X'\342'="{\\Gamma}"
- X'\343'="{\\pi}"
- X'\344'="{\\Sigma}"
- X'\345'="{\\sigma}"
- X'\346'="{\\mu}"
- X'\347'="{\\tau}"
- X'\350'="{\\Phi}"
- X'\351'="{\\theta}"
- X'\352'="{\\Omega}"
- X'\353'="{\\delta}"
- X'\354'="{\\infty}"
- X'\355'="{\\phi}"
- X'\356'="{\\epsilon}"
- X'\357'="{\\cap}"
- X'\360'="{\\equiv}"
- X'\361'="{\\pm}"
- X'\362'="{\\ge}"
- X'\363'="{\\le}"
- X'\364'="{\\int}"
- X'\365'="{\\int}"
- X'\366'="{\\div}"
- X'\367'="{\\approx}"
- X'\370'="{^\\circ}"
- X'\371'="{\\bullet}"
- X'\372'="{\\cdot}"
- X'\373'="{\\sqrt}"
- X'\374'="{^n}"
- X'\375'="{^2}"
- X'\376'="{\vrule height.9ex width.8ex depth-.1ex}"
- X
- X# Use the following table of accented characters if your destination
- X# is troff without eqn.
- X
- X'\200'="\\(,C"
- X'\201'="\\(:u"
- X'\202'="\\('e"
- X'\203'="\\(^a"
- X'\204'="\\(:a"
- X'\205'="\\(`a"
- X'\206'="\\(oa"
- X'\207'="\\(,c"
- X'\210'="\\(^e"
- X'\211'="\\(:e"
- X'\212'="\\(`e"
- X'\213'="\\(:i"
- X'\214'="\\(^i"
- X'\215'="\\(`i"
- X'\216'="\\(:A"
- X'\217'="\\(oA"
- X'\220'="\\('E"
- X'\221'="\\(ae"
- X'\222'="\\(AE"
- X'\223'="\\(^o"
- X'\224'="\\(:o"
- X'\225'="\\(`o"
- X'\226'="\\(^u"
- X'\227'="\\(`u"
- X'\230'="\\(:y"
- X'\231'="\\(:O"
- X'\232'="\\(:U"
- X'\234'="\\(Po"
- X'\235'="\\(Ye"
- X'\236'="\\(Pt"
- X'\237'="\\fIf\\fP"
- X'\240'="\\('a"
- X'\241'="\\('i"
- X'\242'="\\('o"
- X'\243'="\\('u"
- X'\244'="\\(~n"
- X'\245'="\\(~N"
- X'\246'="\\(of"
- X'\247'="\\(Om"
- X'\250'="\\(r?"
- X'\252'="\\(no"
- X'\253'="\\(12"
- X'\254'="\\(14"
- X'\255'="\\(r!"
- X'\256'="\\(Fo"
- X'\257'="\\(Fc"
- X'\370'="\\(de"
- X'\365'="\\(rb"
- X'\376'="\\(sq"
- X
- X# This is either a beta or a German ess-zet, depending on context.
- X# I'll assume it's an ess-zet. If you want a beta, change this to
- X# '\341'="\\(*b"
- X
- X'\341'="\\(ss"
- X
- X'\340'="\\(*a"
- X'\342'="\\(*G"
- X'\343'="\\(*p"
- X'\344'="\\(*S"
- X'\345'="\\(*s"
- X'\346'="\\(*m"
- X'\347'="\\(*t"
- X'\350'="\\(*f"
- X'\351'="\\(*T"
- X'\352'="\\(*W"
- X'\353'="\\(*d"
- X'\354'="\\(if"
- X'\355'="\\(/o"
- X'\356'="\\(*e"
- X'\357'="\\(ca"
- X'\360'="\\(=="
- X'\361'="\\(+-"
- X'\362'="\\(>="
- X'\363'="\\(<="
- X'\364'="\\(is"
- X'\366'="\\(dv"
- X'\367'="\\(~~"
- X'\371'="\\(bu"
- X'\372'="\\(md"
- X'\373'="\\(sr"
- X'\374'="\\(*y"
- X'\375'="\\(ps"
- X
- X# if you are also using eqn, then change the second half to
- X
- X'\340'=" alpha "
- X'\341'=" beta "
- X'\342'=" GAMMA "
- X'\343'=" pi "
- X'\344'=" SIGMA "
- X'\345'=" sigma "
- X'\346'=" mu "
- X'\347'=" tau "
- X'\350'=" Phi "
- X'\351'=" theta "
- X'\352'=" OMEGA "
- X'\353'=" delta "
- X'\354'=" infinity "
- X'\355'=" phi "
- X'\356'=" epsilon "
- X'\357'=" cap "
- X'\360'=" equiv "
- X'\361'=" +- "
- X'\362'=" ge "
- X'\363'=" le "
- X'\364'=" integral "
- X'\366'=" div "
- X'\367'=" approx "
- X'\371'=" bullet "
- X'\372'=" cdot "
- X'\373'=" sqrt "
- X'\374'=" sup n "
- X'\375'=" sup 2 "
- END_OF_FILE
- if test 4270 -ne `wc -c <'accent.cfg'`; then
- echo shar: \"'accent.cfg'\" unpacked with wrong size!
- fi
- # end of 'accent.cfg'
- fi
- if test -f 'ascii.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'ascii.cfg'\"
- else
- echo shar: Extracting \"'ascii.cfg'\" \(4896 characters\)
- sed "s/^X//" >'ascii.cfg' <<'END_OF_FILE'
- X# ascii.cfg converts the WP file directly into an ASCII representation of
- X# same, which vaguely approximates the `show codes' screen. Useful for
- X# debugging your configuration files.
- X
- X'\000'="[000]"
- X'\001'="[001]"
- X'\002'="[002]"
- X'\003'="[003]"
- X'\004'="[004]"
- X'\005'="[005]"
- X'\006'="[006]"
- X'\007'="[007]"
- X'\010'="[010]"
- X'\011'="[011]"
- X'\012'="[012]"
- X'\013'="[013]"
- X'\014'="[014]"
- X'\015'="[015]"
- X'\016'="[016]"
- X'\017'="[017]"
- X'\020'="[020]"
- X'\021'="[021]"
- X'\022'="[022]"
- X'\023'="[023]"
- X'\024'="[024]"
- X'\025'="[025]"
- X'\026'="[026]"
- X'\027'="[027]"
- X'\030'="[030]"
- X'\031'="[031]"
- X'\032'="[032]"
- X'\033'="[033]"
- X'\034'="[034]"
- X'\035'="[035]"
- X'\036'="[036]"
- X'\037'="[037]"
- X'\200'="[200]"
- X'\201'="[201]"
- X'\202'="[202]"
- X'\203'="[203]"
- X'\204'="[204]"
- X'\205'="[205]"
- X'\206'="[206]"
- X'\207'="[207]"
- X'\210'="[210]"
- X'\211'="[211]"
- X'\212'="[212]"
- X'\213'="[213]"
- X'\214'="[214]"
- X'\215'="[215]"
- X'\216'="[216]"
- X'\217'="[217]"
- X'\220'="[220]"
- X'\221'="[221]"
- X'\222'="[222]"
- X'\223'="[223]"
- X'\224'="[224]"
- X'\225'="[225]"
- X'\226'="[226]"
- X'\227'="[227]"
- X'\230'="[230]"
- X'\231'="[231]"
- X'\232'="[232]"
- X'\233'="[233]"
- X'\234'="[234]"
- X'\235'="[235]"
- X'\236'="[236]"
- X'\237'="[237]"
- X'\240'="[240]"
- X'\241'="[241]"
- X'\242'="[242]"
- X'\243'="[243]"
- X'\244'="[244]"
- X'\245'="[245]"
- X'\246'="[246]"
- X'\247'="[247]"
- X'\250'="[250]"
- X'\251'="[251]"
- X'\252'="[252]"
- X'\253'="[253]"
- X'\254'="[254]"
- X'\255'="[255]"
- X'\256'="[256]"
- X'\257'="[257]"
- X'\260'="[260]"
- X'\261'="[261]"
- X'\262'="[262]"
- X'\263'="[263]"
- X'\264'="[264]"
- X'\265'="[265]"
- X'\266'="[266]"
- X'\267'="[267]"
- X'\270'="[270]"
- X'\271'="[271]"
- X'\272'="[272]"
- X'\273'="[273]"
- X'\274'="[274]"
- X'\275'="[275]"
- X'\276'="[276]"
- X'\277'="[277]"
- X'\300'="[300]"
- X'\301'="[301]"
- X'\302'="[302]"
- X'\303'="[303]"
- X'\304'="[304]"
- X'\305'="[305]"
- X'\306'="[306]"
- X'\307'="[307]"
- X'\310'="[310]"
- X'\311'="[311]"
- X'\312'="[312]"
- X'\313'="[313]"
- X'\314'="[314]"
- X'\315'="[315]"
- X'\316'="[316]"
- X'\317'="[317]"
- X'\320'="[320]"
- X'\321'="[321]"
- X'\322'="[322]"
- X'\323'="[323]"
- X'\324'="[324]"
- X'\325'="[325]"
- X'\326'="[326]"
- X'\327'="[327]"
- X'\330'="[330]"
- X'\331'="[331]"
- X'\332'="[332]"
- X'\333'="[333]"
- X'\334'="[334]"
- X'\335'="[335]"
- X'\336'="[336]"
- X'\337'="[337]"
- X'\340'="[340]"
- X'\341'="[341]"
- X'\342'="[342]"
- X'\343'="[343]"
- X'\344'="[344]"
- X'\345'="[345]"
- X'\346'="[346]"
- X'\347'="[347]"
- X'\350'="[350]"
- X'\351'="[351]"
- X'\352'="[352]"
- X'\353'="[353]"
- X'\354'="[354]"
- X'\355'="[355]"
- X'\356'="[356]"
- X'\357'="[357]"
- X'\360'="[360]"
- X'\361'="[361]"
- X'\362'="[362]"
- X'\363'="[363]"
- X'\364'="[364]"
- X'\365'="[365]"
- X'\366'="[366]"
- X'\367'="[367]"
- X'\370'="[370]"
- X'\371'="[371]"
- X'\372'="[372]"
- X'\373'="[373]"
- X'\374'="[374]"
- X'\375'="[375]"
- X'\376'="[376]"
- X'\377'="[377]"
- X
- XBEGIN="[BOF]\n"
- XEND="[EOF]\n"
- XComment="["
- Xcomment=" not supported]\n"
- XHRt="[HRt]\n"
- XSRt="[SRt]\n"
- X
- XSetFn#="[SetFn#%1]"
- XFn="[Fn]"
- XFNote#="[FNote#]"
- Xfn="[fn]"
- X
- XEn="[En]"
- XENote#="[ENote#]"
- Xen="[en]"
- X
- X# Character attributes
- XUnd="[U]"
- Xund="[u]"
- XBold="[B]"
- Xbold="[b]"
- XRed="[Red]"
- Xred="[red]"
- XStrike="[Strike]"
- Xstrike="[strike]"
- XRev="[Reverse]"
- Xrev="[reverse]"
- XOver="[Overtype]"
- Xover="[overtype]"
- XSup="[Sup]"
- Xsup="[sup]"
- XSub="[Sub]"
- Xsub="[sub]"
- X
- X# Alignment
- XCenter="[C]"
- Xcenter="[c]"
- XCenterHere="[CHere]"
- Xcenterhere="[chere]"
- XAlign="[Align]"
- Xalign="[align]"
- XAlignChar="[Algn Char:%c]"
- XFlushRight="[Flsh Rt]"
- Xflushright="[flsh rt]"
- X
- XOver="[O]"
- Xover="[o]"
- X
- X# Hyphens and line breaking and layout
- XHyph="[Hyph]"
- Xhyph="[hyph]"
- XHZone="[HZone:%1,%2]"
- X-="[-]"
- X\--="[-eol]\n"
- X\-="[soft-]"
- X--="[soft-eol]\n"
- X=="[hard-]"
- XNoHyphWord="[/]"
- XHSpace="[ ]"
- XJust="[Just]"
- Xjust="[just]"
- X
- X# Tabs and indentation
- XTab="[Tab]"
- XBeginTabs="[Tab Set"
- XSetTab=" %1"
- XSetTabCenter=" %1c"
- XSetTabRight=" %1r"
- XSetTabDecimal=" %1d"
- XEndTabs="]\n"
- XIndent="[Ind]"
- Xindent="[ind]"
- XDIndent="[DIndent]"
- XMarginRelease="[Margin Release:%1]"
- X
- X# Line spacing
- XLS="[Line spacing: %1/2]"
- XSS="[Line spacing: 1]"
- X1.5S="[Line spacing: 3/2]"
- XDS="[Line spacing: 2]"
- XTS="[Line spacing: 3]"
- XLPI="[LPI:%1]"
- X
- X# Headers, footers, and page layout
- XHeader="[Header]"
- Xheader="[header]\n"
- XFooter="[Footer]"
- Xfooter="[footer]\n"
- XPageNo="[Page#]"
- XPN0="[Pg Numbering:None]"
- XPN1="[Pg Numbering:Top left]"
- XPN2="[Pg Numbering:Top center]"
- XPN3="[Pg Numbering:Top right]"
- XPN4="[Pg Numbering:Top L&R]"
- XPN5="[Pg Numbering:Bot left]"
- XPN6="[Pg Numbering:Bot center]"
- XPN7="[Pg Numbering:Bot right]"
- XPN8="[Pg Numbering:Bot L&R]"
- XRomanPage="[Pg Num:%1 (Roman)]"
- XArabicPage="[Pg Num:%1]"
- XTopMarg="[Top Margin:%1]"
- XMarg="[L/R Margin:%1,%2]"
- XPageLength="[Page Length:%1]"
- XCtrPg="[Center Pg]"
- XSupp="[Suppress %1]"
- XCondEOP="[Cndl EOP:%1/2]"
- XHPg="[HPg]\n"
- XUpHalfLine="[UpHalfLine]"
- XDownHalfLine="[DownHalfLine]"
- XAdvanceToHalfLine="[AdvanceToHalfLine:%1]"
- XWid="[W/O On]"
- Xwid="[W/O Off]"
- X
- X# Fonts and bins
- XSetFont="[Font %1cpi, #%2]"
- XSetBin="[Bin %1]"
- X
- X# Unsupported stuff
- XMath="[Math On]"
- Xmath="[Math Off]"
- XCol="[Col On]"
- Xcol="[Col Off]"
- XMathCalc="[MathCalc]"
- XMathCalcColumn="[!]"
- XSubTotal="[+]"
- XTotal="[=]"
- XIsSubTotal="[t]"
- XIsTotal="[T]"
- XGrandTotal="[*]"
- XNegateTotal="[N]"
- XTableMarker="[Table Marker]"
- END_OF_FILE
- if test 4896 -ne `wc -c <'ascii.cfg'`; then
- echo shar: \"'ascii.cfg'\" unpacked with wrong size!
- fi
- # end of 'ascii.cfg'
- fi
- if test -f 'dopen.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'dopen.c'\"
- else
- echo shar: Extracting \"'dopen.c'\" \(4171 characters\)
- sed "s/^X//" >'dopen.c' <<'END_OF_FILE'
- X/*$Id: dopen.c 1.2 91/08/20 15:18:51 raymond Exp $*/
- X
- X/* dopen() is a massively system-dependent function, so I've placed
- X * it in a separate file.
- X */
- X
- X/* Macros used...
- X *
- X * IS_ABS -- a macro that returns nonzero if the string argument is an
- X * absolute path, or 0 if it is a relative path.
- X * PATH_STR -- a string of characters which separate directory components.
- X * SUF_STR -- suffix for configuration files
- X * PATH_SEP -- character to separate directory from filename.
- X * LIST_SEP -- character that separates pathnames in a list.
- X * exists(f) -- returns nonzero if the file f exists.
- X * if not defined, then use fopen to determine existence.
- X * HAS_ENV -- if defined, environment variables are searched.
- X *
- X */
- X
- X/*
- X * Our algorithm is to try the following in sequence, until one works.
- X *
- X * The filename as-is.
- X * The filename with SUF_STR appended.
- X *
- X * If IS_ABS returns nonzero, then fail.
- X *
- X * Else, we call the system-dependent get_dir() function. Each call
- X * provides a directory to look in.
- X *
- X * For each directory, append the filename (perhaps inserting the
- X * PATH_SEP). If that fails, try again after appending SUF_STR.
- X *
- X * When we run out of directories, we fail.
- X */
- X
- X#ifdef UNIX
- X#define HAS_ENV
- X#define exists(f) (access(f, 0) == 0)
- X#define IS_ABS(f) (*f == '/')
- X#define SUF_STR ".cfg"
- X#define PATH_SEP '/'
- X#define PATH_STR "/"
- X#define LIST_SEP ':'
- X#endif
- X
- X#ifdef MSDOS
- X#define HAS_ENV
- X#include <io.h>
- X#define exists(f) (access(f, 0) == 0)
- X#define IS_ABS(f) (f[1] == ':' || strchr(PATH_STR, *f))
- X#define SUF_STR ".cfg"
- X#define PATH_SEP '/'
- X#define PATH_STR "/\\:"
- X#define LIST_SEP ';'
- X#endif
- X
- X#ifdef VMS /* VMS is really different */
- X#define IS_ABS(f) (strchr(f, ':') || strchr(PATH_STR, *f))
- X#define SUF_STR ".cfg"
- X#define PATH_SEP '.'
- X#define PATH_STR "[.]"
- X#endif
- X
- X#ifdef AMIGA
- X#define IS_ABS(f) (strchr(f, ':') || *f == '/')
- X#define SUF_STR ".cfg"
- X#define PATH_SEP '/'
- X#define PATH_STR "/"
- X#endif
- X
- X/* If user specified no operating system, be very pessimistic.
- X * Don't do anything beyond adding the `.cfg. suffix.
- X */
- X#ifndef SUF_STR
- X#define IS_ABS 1
- X#define SUF_STR ".cfg"
- X#undef PATH_SEP
- X#undef PATH_STR
- X#undef HAS_ENV
- X#endif
- X
- X/* If we don't have an exists(), then we'll just use fopen. */
- X#ifndef exists
- X#define exists(f) (descriptor = fopen(f, "rt"))
- X#endif
- X
- X#ifdef HAS_ENV
- X/* We search a handful of environment variables */
- Xconst char *envlist[] = { "PATH", "DPATH", "WP2XDIR", NULL };
- X
- Xchar *get_dir(void)
- X{
- X static const char **nextenv = envlist;
- X static const char *nextpath = NULL;
- X char *s;
- X
- X /* get the next environment variable */
- X while (nextpath == NULL || *nextpath == '\0') {
- X if (*nextenv == NULL) return NULL; /* out of ideas */
- X nextpath = getenv(*nextenv++);
- X }
- X
- X /* copy the next path component into the string pool */
- X /* We can ignore the UNIX convention that a null component
- X * denotes the current directory, since the current directory
- X * has already been searched before we get to this point.
- X */
- X s = pool;
- X while (*nextpath && *nextpath != LIST_SEP) *s++ = *nextpath++;
- X if (*nextpath) nextpath++;
- X
- X return s; /* where to append the filename */
- X}
- X#else
- X/* On non-UNIX systems, we don't have environment variables. */
- X/* We might have other things, though, so insert your local version here */
- Xchar *get_dir(void) { return NULL; }
- X#endif
- X
- X/* s is where to copy the filename, and f is the filename to try. */
- X
- Xint try_directory(char *s, const char *f)
- X{
- X if (s > pool && !strchr(PATH_STR, s[-1])) *s++ = PATH_SEP;
- X strcpy(s, f);
- X
- X if (exists(pool) || (strcat(s, SUF_STR), exists(pool))) {
- X if (!descriptor) descriptor = efopen(pool, "rt");
- X return 1;
- X }
- X
- X return 0;
- X}
- X
- Xvoid dopen(const char *f)
- X{
- X char *s;
- X
- X /* First, try it as-is */
- X if (try_directory(pool, f)) return;
- X
- X#ifdef WP2X_DIR
- X strcpy(pool, WP2X_DIR);
- X if (try_directory(strchr(pool, '\0'), f)) return;
- X#endif
- X
- X /* Skip if an absolute path */
- X if (!IS_ABS(f)) {
- X /* Iterate through the possible directories */
- X while (s = get_dir()) if (try_directory(s, f)) return;
- X }
- X error(NULL, "Cannot find file %s\n", f);
- X}
- END_OF_FILE
- if test 4171 -ne `wc -c <'dopen.c'`; then
- echo shar: \"'dopen.c'\" unpacked with wrong size!
- fi
- # end of 'dopen.c'
- fi
- if test -f 'gml.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'gml.cfg'\"
- else
- echo shar: Extracting \"'gml.cfg'\" \(2339 characters\)
- sed "s/^X//" >'gml.cfg' <<'END_OF_FILE'
- X# GML configuration file for WP2X.
- X#
- X# Written 5/20/89 by Raymond Chen.
- X#
- X# If you change this file, please make a note of it below
- X# and in the BEGIN string.
- X#
- X# Version 0.0: Initial version.
- X# Version 0.1: COMMENT tag added 23-Jul-1991.
- X# Version 0.2: Note numbers.
- X# Version 0.3: New output scheme.
- X
- XHPg="%\n.pa\n" # Hard page forces a new page
- XHRt="%\n" # Hard return does nothing; the :P will be
- X # produced when we hit a Tab.
- XSRt="%\n" # Soft return is a newline
- XTab=":P." # Tab marks the start of a new paragraph
- X
- X-="-" # Hyphens are hyphens
- X--="-+\\n" # Hyphen at the end of a line gets a +
- X=="-" # Nonbreaking hyphen (does it exist?)
- X\-="" # Discretionary hyphen does not exist
- X\--="+\n" # Discretonary hyphen at the end of the line
- X
- XUnd=":hp1." # Underlining uses level 1
- Xund=":ehp1."
- XBold=":hp2." # Boldface uses level 2
- Xbold=":ehp2."
- X
- X# Margins are left as comments, since changing the margin on the fly
- X# is tricky.
- XMarg="%\n.* left margin %1, right margin %2\n"
- X
- XIndent=":LQ." # Assume we indent for long quotes.
- Xindent=":eLQ." # It's a reasonable assumption.
- X
- XFn=":FN." # Standard tags.
- Xfn=":eFN."
- XEn=":EN."
- Xen=":eEN."
- XFNote#="" # Note numbers are automatically generated.
- XENote#="" # Note numbers are automatically generated.
- X
- X# Line spacing changes are treated by dropping into Script.
- X# This is dangerous, of course.
- X# There is no way to do spacing different from 1 or 2.
- X
- XSS="%\n.ss\n"
- X1.5S="%\n.* Switch to 1.5 spacing\n"
- XDS="%\n.ds\n"
- XTS="%\n.* Switch to triple spacing\n"
- XLS="%\n.* Switch to %1/2 spacing\n"
- X
- X# At the beginning of the file, we load the proper style file
- X# and the laser files.
- X# We also put in some identification.
- XBEGIN=".* This file was created by the WP2X program, using a GML
- X.* descriptor file (Version 0.3) written by Raymond Chen.
- X.*
- X.* Do not expect everything to be converted perfectly.
- X.*
- X.im gmlthesi
- X.im laser
- X:GDOC
- X:FRONTM
- X:eFRONTM
- X:BODY
- X"
- X
- X# At the end of the file, we close up some tags.
- XEND=".*
- X:eBODY
- X:eGDOC
- X.* End of file
- X"
- XComment="%\n.* "
- Xcomment="\n"
- END_OF_FILE
- if test 2339 -ne `wc -c <'gml.cfg'`; then
- echo shar: \"'gml.cfg'\" unpacked with wrong size!
- fi
- # end of 'gml.cfg'
- fi
- if test -f 'latex.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'latex.cfg'\"
- else
- echo shar: Extracting \"'latex.cfg'\" \(6375 characters\)
- sed "s/^X//" >'latex.cfg' <<'END_OF_FILE'
- X# LaTeX configuration file for WP2X.
- X#
- X# Written 12/15/89 by Raymond Chen '89.
- X# Updated 7/05/91 by Raymond Chen.
- X#
- X# If you change this file, please make a note of it below
- X# and in the BEGIN string. (And probably also in the typeout
- X# string.)
- X#
- X# Version 0.0: Initial version.
- X# Version 0.2: Add new tags, reorder existing tags for easier comparison.
- X# Version 0.3: Tab markers, improved(?) header/footer
- X# Version 0.4: Fix percent signs.
- X# Version 0.5: Add \begin{document}, discuss { } \
- X# Version 0.6: New output scheme.
- X
- Xtypeout="LaTeX descriptor file for WP2X by Raymond Chen\n"
- X
- X# At the beginning of the file, we claim to be using article style.
- X
- XBEGIN="%% This file was created by the WP2X program, using a LaTeX
- X%% descriptor file (Version 0.6) written by Raymond Chen.
- X%% Do not expect everything to be converted perfectly.
- X%%
- X\\documentstyle{article}
- X\\begin{document}
- X%%
- X"
- X
- X# At the end of the file, we end the document.
- XEND="\\end{document}
- X%% That's all, folks.
- X"
- X
- X# How to make a one-line comment in LaTeX.
- XComment="%\n"
- Xcomment="\n"
- X
- X# Protect percent signs and other magic symbols.
- X'%'="\\%%"
- X'$'="\\$"
- X'#'="\\#"
- X'&'="\\&"
- X'^'="\\^{}"
- X'_'="\\_"
- X'~'="\\~{}"
- X
- X# Curly braces and backslashes are intentionally left untranslated.
- X# If you want them to be converted, uncomment these three lines.
- X#
- X# '{'="$\\{$"
- X# '}'="$\\}$"
- X# '\\'="$\\backslash$"
- X#
- X# These characters are left untranslated because they do not exist
- X# in the TeX font tables. I.e., they won't be printed in boldface
- X# or italic or whatever font you selected; they always come from
- X# the math font.
- X
- X# Now the actual code expansions.
- X
- X# Many of these tags emit comments, since there is an official LaTeX way
- X# of doing them.
- X
- XPageNo="\\folio{}" # insert page number
- XRomanPage="%\n%% Set roman page number %1\n" # set roman numerals
- XArabicPage="%\n%% Set arabic page number %1\n" # set arabic numerals
- X
- XHSpace="~" # Unbreakable space
- X
- XTab="\\indent " # Tabs mean to indent and start a new para.
- XHPg="%\n\\vfill\\eject\n" # Hard page is just a \vfill\eject
- XCondEOP="%\n%% Conditional end-of-page for %1 lines\n"
- X
- XHRt="%\n\n" # Hard return becomes a blank line
- XSRt="%\n" # Soft return is a newline
- X
- X-="-" # Hyphens are hyphens
- X--="-%%\n" # Hyphen at the end of a line gets a %
- X=="{-}" # Nonbreaking hyphen
- X\-="\\-" # Discretionary hyphen
- X\--="\\-%%\n" # Discretionary hyphen at the end of the line
- XNoHyphWord="\\mbox{}" # Inhibit hyphenation of this word
- X
- X# Margins are left as comments, since you shouldn't change margins
- X# willy-nilly in LaTeX.
- XMarg="%%\n%% left margin %1, right margin %2\n"
- XTopMarg="%%\n%% top margin %1\n"
- XPageLength="%%\n%% page length %1\n"
- X
- X# Line spacing changes are treated by setting \baselinestretch and then
- X# calling \normalbaselines to let the change take effect.
- X
- XSS="\\def\\baselinestretch{1}\\normalbaselines\n"
- X1.5S="\\def\\baselinestretch{1.5}\\normalbaselines\n"
- XDS="\\def\\baselinestretch{2}\\normalbaselines\n"
- XTS="\\def\\baselinestretch{3}\\normalbaselines\n"
- XLS="{\\count0=%1 \\count1=\\count0 \\divide\\count1 by 2
- X\\global\\edef\\baselinestretch{\\number\\count1\\ifodd\\count0.5\\fi}}
- X\\normalbaselines}
- X"
- XLPI="%\n%% Change to %1 lines per inch\n"
- X
- XBold="{\\bf " # Boldface
- Xbold="}"
- XUnd="{\\em " # Underlining is in "emphasized"
- Xund="\\/}" # with italic correction stuck in always.
- XRed="{\\redline " # Redline
- Xred="}"
- XStrike="{\\strikeout " # Strikeout
- Xstrike="}"
- XRev="{\\reverse " # Reverse video
- Xrev="}"
- XOver="\\llap{" # Overprinting is faked with \llap
- Xover="}"
- XSup="\\raise.5ex\\hbox{" # fake superscript
- Xsup="}"
- XSub="\\lower.5ex\\hbox{" # fake subscript
- Xsub="}"
- X
- X# UpHalfLine, DownHalfLine, AdvanceToHalf -- undefined
- X
- XIndent="{\\narrower " # Indented paragraphs use \narrower; this
- XDIndent="{\\narrower " # is not a perfect solution, but it's a start.
- Xindent="\\par}\n"
- XMarginRelease="%\n%% Margin release, move back %1 characters\n"
- X
- XCenter="%\n\\begin{center}\n" # enter centering environment
- Xcenter="%\n\\end{center}"
- XCenterHere="%\n\\begin{centerhere}\n" # Not supported
- Xcenterhere="%\n\\end{centerhere}"
- X
- XAlign="%\n\\begin{align}\n" # Not supported
- Xalign="%\n\\end{align}"
- XFlushRight="%\n\\begin{flushright}\n"
- Xflushright="%\n\\end{flushright}"
- X
- X# Math, math, MathCalc, MathCalcColumn, SubTtl, IsSubTtl, Ttl, IsTtl, GrandTtl
- X# Col, col -- undefined
- X
- XFn="%\n\\begin{footnote}\n" # begin footnote
- Xfn="%\n\\end{footnote}\n"
- XSetFn#="%\n%% Set Footnote number to %1\n" # don't do this in LaTeX
- XEn="%\n\\begin{endnote}\n" # You'll have to write your own endnote environ.
- Xen="%\n\\end{endnote}\n"
- XFNote#="" # Note numbers are automatically generated.
- XENote#="" # Note numbers are automatically generated.
- X
- X# TableMarker -- undefined
- X
- XBeginTabs="%\n%% Set tabs at"
- XSetTab=" %1"
- XSetTabCenter=" %1c"
- XSetTabRight=" %1r"
- XSetTabDecimal=" %1d"
- XEndTabs="\n"
- X
- XHyph="\\hyphenpenalty=50\n" # Allow hyphenation
- Xhyph="\\hyphenpenalty=10000\n" # Disable hyphenation
- XJust="\\rightskip=0pt\n" # Right justify
- Xjust="\\raggedright\n" # Ragged right
- XWid="\\clubpenalty=150 \\widowpenalty=150\n" # Widow protection
- Xwid="\\clubpenalty=0 \\widowpenalty=0\n" # Allow widows
- X
- X# HZone, DAlign -- undefined
- X
- X# These guys are left as comments, since you're not supposed to do
- X# them in LaTeX.
- XHeader="%\n%% Change header to\n\\toks0={"
- Xheader="}\n"
- XFooter="%\n%% Change footer to\n\\toks0={"
- Xfooter="}\n"
- XSupp="%\n%% Suppress headers and footers on this page\n"
- XCtrPg="%\n%% Center this page vertically\n"
- XSetFont="%\n%% Change to %1 pitch, font %2\n"
- XSetBin="%\n%% Change to paper bin %1\n"
- X
- X# Same reason for these.
- XPN0="%\n%% no page numbers\n"
- XPN1="%\n%% page numbers in upper left corner\n"
- XPN2="%\n%% page numbers top center\n"
- XPN3="%\n%% page numbers in upper right corner\n"
- XPN4="%\n%% page numbers in alternating even/odd upper corners\n"
- XPN5="%\n%% page numbers in bottom left corner\n"
- XPN6="%\n%% page numbers bottom center\n"
- XPN7="%\n%% page numbers in bottom right corner\n"
- XPN8="%\n%% page numbers in alternating even/odd bottom corners\n"
- END_OF_FILE
- if test 6375 -ne `wc -c <'latex.cfg'`; then
- echo shar: \"'latex.cfg'\" unpacked with wrong size!
- fi
- # end of 'latex.cfg'
- fi
- if test -f 'sample.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'sample.cfg'\"
- else
- echo shar: Extracting \"'sample.cfg'\" \(3895 characters\)
- sed "s/^X//" >'sample.cfg' <<'END_OF_FILE'
- X# Sample configuration file for WP2X for a mythical conversion job.
- X#
- X# This is a configuration file that might be used to convert a
- X# multi-chapter paper from WordPerfect into LaTeX.
- X#
- X# One way to approach writing a configuration file is to first use a null.cfg
- X# file that defines nothing, then run your WP file through it, making careful
- X# note of the warning messages. Then study how those tokens are used in the
- X# WP file and write a configuration file based thereon.
- X#
- X# We will use article style. See the description of HPg for why there is
- X# a =section at the end of the BEGIN string.
- X
- XBEGIN="\\documentstyle{article}\n=section"
- XEND="\\end{document}\n"
- X
- X# How to make a one-line comment in LaTeX.
- XComment="%\n%% "
- Xcomment="\n"
- X
- X# Protect percent signs and other magic symbols.
- X'%'="\\%%"
- X'$'="\\$"
- X'#'="\\#"
- X'&'="\\&"
- X'^'="\\^{}"
- X'_'="\\_"
- X'~'="\\~{}"
- X
- X# Now the actual code expansions. These are taken straight from latex.cfg
- X
- XHSpace="~" # Unbreakable space
- XHRt="%\n\n" # Hard return becomes a blank line
- XSRt="%\n" # Soft return is a newline
- X-="-" # Hyphens are hyphens
- X--="-%%\n" # Hyphen at the end of a line gets a %
- X=="{-}" # Nonbreaking hyphen
- X\-="\\-" # Discretionary hyphen
- X\--="\\-%%\n" # Discretionary hyphen at the end of the line
- X
- XUnd="{\\em " # Underlining is in "emphasized"
- Xund="\\/}" # with italic correction stuck in always.
- X
- X# As part of the postprocessing, I'd probably want to remove spurious italic
- X# corrections, via
- X#
- X# %s/\\\/},/},/g
- X# %s/\\\/}./}./g
- X#
- X# The only time boldface is used is in the section headings, so I can make
- X# the codes expand to nothing, since LaTeX boldfaces the section headings
- X# automatically.
- XBold=""
- Xbold=""
- X
- X# Since my paper never uses the equal-sign `=', I can use it as a special
- X# tag in the output file.
- X#
- X# The style used in this paper is that all section and subsection headings
- X# appear as centered lines, and centered lines are used nowhere else in
- X# the paper. Sections start after a hard page break; subsections continue
- X# in the middle of a page. So what we'll do is leave a tag here, then
- X# postprocess the output with some vi macros.
- X
- XHPg="%\n\n=section"
- XCenter="=center{"
- Xcenter="}\n"
- X
- X# Afterwards, the following vi commands will turn the centering commands
- X# into the proper \section or \subsection commands.
- X#
- X# %s/^=section=center/\\section/
- X# %s/^=center/\\subsection/
- X#
- X
- X# The only time single spacing is needed is during quotations, so we'll
- X# use SS and DS as signals to enter and exit the quotation environment.
- X# This produces a spurious \end{quote} at the top of the document, which
- X# we'll delete as part of the postprocessing. Consequently, I don't
- X# need DIndent, since the {quote} environment does that for me.
- X
- XSS="%\n\\begin{quote}\n"
- XDS="%\n\\end{quote}\n"
- XDIndent=""
- Xindent=""
- X
- X# The only characters I use overlap to produce is a capital O with a slash
- X# through it. So afterwards, a simple
- X#
- X# %s/O=<\//{\\O}/g
- X#
- X# will turn all `O overprint /' into `{\O}'.
- X#
- XOver="=<"
- Xover=""
- X
- X# Though I do need some other accented characters for words like
- X# r\'egime, r\^ole, na\"{\i}ve, and co\"operation.
- X'\202'="\\'e"
- X'\223'="\\^o"
- X'\213'="\\\"{\\i}"
- X'\224'="\\\"o"
- X
- XFn="%\n\\begin{footnote}\n" # begin footnote
- Xfn="%\n\\end{footnote}\n"
- XFNote#="" # Note numbers are automatically generated.
- XENote#="" # Note numbers are automatically generated.
- X
- X# I'll ignore headers and footers and suppression, since LaTeX does
- X# that automatically.
- X# them in LaTeX.
- XHeader="%\n%% header\n\\toks0={"
- Xheader="} %% delete these lines!\n"
- XFooter="%\n%% footer\n\\toks0={"
- Xfooter="} %% delete these lines!\n"
- XSupp=""
- XPN0=""
- XPN1=""
- XPN2=""
- XPN3=""
- XPN4=""
- XPN5=""
- XPN6=""
- XPN7=""
- XPN8=""
- END_OF_FILE
- if test 3895 -ne `wc -c <'sample.cfg'`; then
- echo shar: \"'sample.cfg'\" unpacked with wrong size!
- fi
- # end of 'sample.cfg'
- fi
- if test -f 'script.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'script.cfg'\"
- else
- echo shar: Extracting \"'script.cfg'\" \(2174 characters\)
- sed "s/^X//" >'script.cfg' <<'END_OF_FILE'
- X# Script configuration file for WP2X.
- X#
- X# Written 5/20/89 by Raymond Chen.
- X# If you change this file, please make a note of it below
- X# and in the BEGIN string.
- X#
- X# Version 0.0: Initial version.
- X# Version 0.1: COMMENT tag added 23-Jul-1991.
- X# Version 0.2: Note numbers.
- X# Version 0.3: New output scheme.
- X
- XHPg="%\n.pa\n" # Hard page forces a new page
- XHRt="%\n" # Hard return does nothing; the .pp will be
- X # produced when we hit a Tab.
- XSRt="%\n" # Soft return is a newline
- XTab=".pp\n" # Tab marks the start of a new paragraph
- X
- X-="-" # Hyphens are hyphens
- X--="-+\\n" # Hyphen at the end of a line gets a +
- X=="-" # Nonbreaking hyphen (does it exist?)
- X\-="" # Discretionary hyphen does not exist
- X\--="+\n" # Discretonary hyphen at the end of the line
- X
- XUnd="+\n.us " # Underlining
- Xund="|"
- XBold="+\n.bd " # Boldface
- Xbold="|"
- X
- X# Margins are left as comments, since changing the margin on the fly
- X# is tricky.
- XMarg="%\n.* left margin %1, right margin %2\n"
- X
- XIndent="%\n.in +5\n" # Push our margin in, please.
- Xindent="%\n.in\n" # Pop it back.
- X
- XFn="%\n.footnote\n" # You'll have to write these macros yourself.
- Xfn="%\n.footnote end\n"
- XEn="%\n.endnote\n"
- Xen="%\n.endnote end\n"
- XFNote#="" # Note numbers should be automatically generated.
- XENote#="" # Note numbers should be automatically generated.
- X
- X# There is no way to do spacing different from 1 or 2.
- X
- XSS="%\n.ss\n"
- X1.5S="%\n.* Switch to 1.5 spacing\n"
- XDS="%\n.ds\n"
- XTS="%\n.* Switch to triple spacing\n"
- XLS="%\n.* Switch to %1/2 spacing\n"
- X
- X# At the beginning of the file, we load the proper style file
- X# and the laser files.
- X# We also put in some identification.
- XBEGIN=".* This file was created by the WP2X program, using a Script
- X.* descriptor file (Version 0.3) written by Raymond Chen.
- X.*
- X.* Do not expect everything to be converted perfectly.
- X.*
- X.dc cont +
- X.ud set |
- X"
- XEND="\n.* End of file\n"
- X
- XComment="%\n.* "
- Xcomment="\n"
- END_OF_FILE
- if test 2174 -ne `wc -c <'script.cfg'`; then
- echo shar: \"'script.cfg'\" unpacked with wrong size!
- fi
- # end of 'script.cfg'
- fi
- if test -f 'torture.chk' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'torture.chk'\"
- else
- echo shar: Extracting \"'torture.chk'\" \(3825 characters\)
- sed "s/^X//" >'torture.chk' <<'END_OF_FILE'
- X[BOF]
- XTesting headers and footers and tab settings and stuff people[SRt]
- Xtraditionally put at the top of a document.[HRt]
- X[Top Margin:18][Page Length:66][L/R Margin:10,73][Pg Numbering:Bot center][Pg Num:256 (Roman)][HRt]
- X[Header][C]Page [Page#][c][HRt]
- X[header]
- X[Footer]Title[Flsh Rt]Chapter[flsh rt][HRt]
- X[footer]
- X[Suppress 242][Center Pg][B][C]Greetings, world[b][c][HRt]
- X[Header][C]Header B[c][HRt]
- X[C]is two lines long[c][HRt]
- X[header]
- X[HRt]
- X[Tab Set 15 20d 25d 50c 65r]
- X[HRt]
- X[Tab]Funky[Align]tabs[align][Tab][CHere]set[chere][Align]here[align][HRt]
- X[Tab Set 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70]
- X[HRt]
- X[Tab][Ind][Margin Release:0]Hanging indent.[ind][HRt]
- X[HRt]
- XStrange c[Red]h[red][Strike]a[strike][Sup]r[sup][Sub]a[sub]cter attributes.[Pg Num:6][HPg]
- XTesting control characters.[HRt]
- X[000][001][002][003][004][005][006][007][HRt]
- X[010][011][012][013][014][015][016][017][HRt]
- X[020][021][022][023][024][025][026][027][HRt]
- X[030][031][032][033][034][035][036][037][HRt]
- XTesting extended ASCII characters.[HRt]
- X[200][201][202][203][204][205][206][207][HRt]
- X[210][211][212][213][214][215][216][217][HRt]
- X[220][221][222][223][224][225][226][227][HRt]
- X[230][231][232][233][234][235][236][237][HRt]
- X[240][241][242][243][244][245][246][247][HRt]
- X[250][251][252][253][254][255][256][257][HRt]
- X[260][261][262][263][264][265][266][267][HRt]
- X[270][271][272][273][274][275][276][277][HRt]
- X[300][301][302][303][304][305][306][307][HRt]
- X[310][311][312][313][314][315][316][317][HRt]
- X[320][321][322][323][324][325][326][327][HRt]
- X[330][331][332][333][334][335][336][337][HRt]
- X[340][341][342][343][344][345][346][347][HRt]
- X[350][351][352][353][354][355][356][357][HRt]
- X[360][361][362][363][364][365][366][367][HRt]
- X[370][371][372][373][374][375][376][377][HRt]
- X[Cndl EOP:12/2][HRt]
- XTesting [footnote attributes not supported]
- Xfootnotes[SetFn#513][Fn][FNote#]Footnote number 512. [U]u[B]bu[b][u] again [FNote#][HRt]
- X[C]29c@/ postage.[c][HRt]
- X[fn] and endnotes[En][ENote#][Ind]An endnote that goes on for quite some time, taking up[SRt]
- Xvaluable space in the file that could be better used testing[SRt]
- Xsomething else.[ind][HRt]
- X[en], as well as line breaks,[HZone:3,2] [Hyph]hyphen[-eol]
- Xation [/]suppression, sug[soft-]gested hyphens, as[-]yet[-]unused and used soft[soft-eol]
- Xhyphens, and never[hard-]to[hard-]be[hard-]use hyphens.[hyph][Tab]Tabs in the middle of a line[SRt]
- Xare problematic, as well as [Ind]indented paragraphs that don't begin[SRt]
- Xuntil the middle of a paragraph.[ind][HRt]
- X[HRt]
- X[Line spacing: 5/2][just][DIndent]Very unusual is a double[-]spaced doubly[-]indented[SRt]
- Xparagraph, since typically doubly[-]indented paragraphs are[SRt]
- X[U]single[u][-]spaced. (signed) Dr.[ ]Frankenstein.[ind][HRt]
- X[Line spacing: 3/2][Just][HRt]
- X[Tab][Tab][CHere]centering around[chere][Tab][Tab][CHere]tab stops[chere] or [Tab][Tab][Align]decimal[align].points[Flsh Rt]flush right[flsh rt][HRt]
- X[Line spacing: 1]Neither columns [define column not supported]
- Xnor math[define math columns not supported]
- X[Math On] is supported.[HRt]
- X[Col On]left[HPg]
- Xright2[Align][align][Align]3[align].00[!][HRt]
- X[Align]4[align][HRt]
- X[Align]3[align][HRt]
- X[Align]4[align][HRt]
- X[Align]11[align].00[+][HRt]
- X[Align]11[align].00[=][HRt]
- X[Align][t][align][HRt]
- X[Align][T][align][HRt]
- X[Align]11[align].00[*][HRt]
- X[Align][N][align][HRt]
- X[Math Off][HRt]
- X[W/O On]Back to the usual nonsense of text processing, like alignment[SRt]
- Xcharacters[Algn Char:@], and outline mode (unsupported)[paragraph numbering style not supported]
- X[HRt]
- X[Tab][numbered paragraph not supported]
- X[Ind]Part A[ind][HRt]
- X[Tab][Tab][numbered paragraph not supported]
- X[Ind]Part a.1[ind][HRt]
- X[Tab][numbered paragraph not supported]
- X number three, whatever that is[HRt]
- X[begin marked text not supported]
- X[end marked text not supported]
- X[define index mark not supported]
- X[EOF]
- END_OF_FILE
- if test 3825 -ne `wc -c <'torture.chk'`; then
- echo shar: \"'torture.chk'\" unpacked with wrong size!
- fi
- # end of 'torture.chk'
- fi
- if test -f 'torture.uue' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'torture.uue'\"
- else
- echo shar: Extracting \"'torture.uue'\" \(3761 characters\)
- sed "s/^X//" >'torture.uue' <<'END_OF_FILE'
- Xbegin 644 torture.wp
- XM5&5S=&EN9R!H96%D97)S(&%N9"!F;V]T97)S(&%N9"!T86(@<V5T=&EN9W,@
- XM86YD('-T=69F('!E;W!L90UT<F%D:71I;VYA;&QY('!U="!A="!T:&4@=&]P
- XM(&]F(&$@9&]C=6UE;G0N"LX`$L[0``!"9M#````*2<#&``;&QP``@0#'"M$`
- XM`/__``##`"LHPU!A9V4@`O\"!-'1`@#__P``5&ET;&7$"DU&Q$-H87!T97+_
- XM`@;1S_+/AIW#`"LCPT=R965T:6YG<RP@=V]R;&2<@PK1`0#__P``PP`K)\-(
- XM96%D97(@0H,*PP`K(\-I<R!T=V\@;&EN97,@;&]N9X,*_P()T0KQ````````
- XM````````````````````````````````````````````````````````````
- XM```!"$```"``0````````````````````````````````S$@````````````
- XM``````````#Q"@E&=6YK><0N&17$=&%B<X,)PP$R,<-S972#Q"Y!/<1H97)E
- XM@PKQ````````````````````````````````````````````````````````
- XM`````````````(0A"$(0A"$(0@``````````````````````````````````
- XM```````S$@````````````#Q"@G,``#,P@#"2&%N9VEN9R!I;F1E;G0N"@I3
- XM=')A;F=E(&.0:)&289.\<KUA8W1E<B!A='1R:6)U=&5S+L<````&QPQ497-T
- XM:6YG(&-O;G1R;VP@8VAA<F%C=&5R<RX*X0#AX0'AX0+AX0/AX03AX07AX0;A
- XMX0?A"N$(X>$)X>$*X>$+X>$,X>$-X>$.X>$/X0KA$.'A$>'A$N'A$^'A%.'A
- XM%>'A%N'A%^$*X1CAX1GAX1KAX1OAX1SAX1WAX1[AX1_A"E1E<W1I;F<@97AT
- XM96YD960@05-#24D@8VAA<F%C=&5R<RX*X8#AX8'AX8+AX8/AX83AX87AX8;A
- XMX8?A"N&(X>&)X>&*X>&+X>&,X>&-X>&.X>&/X0KAD.'AD>'ADN'AD^'AE.'A
- XME>'AEN'AE^$*X9CAX9GAX9KAX9OAX9SAX9WAX9[AX9_A"N&@X>&AX>&BX>&C
- XMX>&DX>&EX>&FX>&GX0KAJ.'AJ>'AJN'AJ^'AK.'AK>'AKN'AK^$*X;#AX;'A
- XMX;+AX;/AX;3AX;7AX;;AX;?A"N&XX>&YX>&ZX>&[X>&\X>&]X>&^X>&_X0KA
- XMP.'AP>'APN'AP^'AQ.'AQ>'AQN'AQ^$*X<CAX<GAX<KAX<OAX<SAX<WAX<[A
- XMX<_A"N'0X>'1X>'2X>'3X>'4X>'5X>'6X>'7X0KAV.'AV>'AVN'AV^'AW.'A
- XMW>'AWN'AW^$*X>#AX>'AX>+AX>/AX>3AX>7AX>;AX>?A"N'HX>'IX>'JX>'K
- XMX>'LX>'MX>'NX>'OX0KA\.'A\>'A\N'A\^'A].'A]>'A]N'A]^$*X?CAX?GA
- XMX?KAX?OAX?SAX?WAX?[AX?_A"LH,R@I497-T:6YG(.,`````````````````
- XM````````````````````````````````````````````````````````````
- XM``````````````````````("!J0!80``````O.(`````````````````````
- XM``````````````````4@("`@(+SB````````````````````````````````
- XMXV9O;W1N;W1E<^0```0`Y.(!"'-S<W-S<_\``(U&;V]T;F]T92!N=6UB97(@
- XM-3$R+B`@E'6=8G6<E2!A9V%I;B"-"L,`*R3#,CEC0"\@<&]S=&%G92Z#"N(@
- XM86YD(&5N9&YO=&5SX@(``0$!`/\``(W,``#,06X@96YD;F]T92!T:&%T(&=O
- XM97,@;VX@9F]R('%U:71E('-O;64@=&EM92P@=&%K:6YG('5P#79A;'5A8FQE
- XM('-P86-E(&EN('1H92!F:6QE('1H870@8V]U;&0@8F4@8F5T=&5R('5S960@
- XM=&5S=&EN9PUS;VUE=&AI;F<@96QS92[B+"!A<R!W96QL(&%S(&QI;F4@8G)E
- XM86MS+,4```,"Q2"?:'EP:&5NK6%T:6]N()IS=7!P<F5S<VEO;BP@<W5GK&=E
- XM<W1E9"!H>7!H96YS+"!A<ZEY972I=6YU<V5D(&%N9"!U<V5D('-O9G2J:'EP
- XM:&5N<RP@86YD(&YE=F5R+71O+6)E+75S92!H>7!H96YS+IX)5&%B<R!I;B!T
- XM:&4@;6ED9&QE(&]F(&$@;&EN90UA<F4@<')O8FQE;6%T:6,L(&%S('=E;&P@
- XM87,@S```S&EN9&5N=&5D('!A<F%G<F%P:',@=&AA="!D;VXG="!B96=I;@UU
- XM;G1I;"!T:&4@;6ED9&QE(&]F(&$@<&%R86=R87!H+@H*P0`%P8+@``#@5F5R
- XM>2!U;G5S=6%L(&ES(&$@9&]U8FQEJ7-P86-E9"!D;W5B;'FI:6YD96YT960-
- XM<&%R86=R87!H+"!S:6YC92!T>7!I8V%L;'D@9&]U8FQYJ6EN9&5N=&5D('!A
- XM<F%G<F%P:',@87)E#91S:6YG;&65J7-P86-E9"X@("AS:6=N960I($1R+J!&
- XM<F%N:V5N<W1E:6XN"L$``\&!"@D)PP$4#,-C96YT97)I;F<@87)O=6YD@PD)
- XMPP$C'\-T86(@<W1O<'.#(&]R(`D)Q"XW,,1D96-I;6%L@RYP;VEN='/$"DU"
- XMQ&9L=7-H(')I9VAT@PK!``+!3F5I=&AE<B!C;VQU;6YS(/,`````````````
- XM`````````````````````````````````````````````````````@HH+4L`
- XM`````````````````````````````````````````````````````````/-N
- XM;W(@;6%T:-<`````````````````````````````````````_R*"(B(B(B(B
- XM(B(B(B(B(B(B(B(B(B(B(H'$\`$!`0````#7IR!I<R!S=7!P;W)T960N"H=L
- XM969T#')I9VATL#+$+@\/Q(/$+A03Q#.#+C`PI@K$+@\.Q#2#"L0N#P[$,X,*
- XMQ"X/#L0T@PK$+@\-Q#$Q@RXP,*$*Q"X/#<0Q,8,N,#"C"L0N#P[$HH,*Q"X/
- XM#L2D@PK$+@\-Q#$Q@RXP,*4*Q"X/#L2Q@PJH"HI"86-K('1O('1H92!U<W5A
- XM;"!N;VYS96YS92!O9B!T97AT('!R;V-E<W-I;F<L(&QI:V4@86QI9VYM96YT
- XM#6-H87)A8W1E<G/8`$#8+"!A;F0@;W5T;&EN92!M;V1E("AU;G-U<'!O<G1E
- XM9"GN````````````````````````````$!`4$C0R(`$`````````````````
- XM[@H)[P$``0````````````````#OS```S%!A<G0@00H)">\"``$``0``````
- XM````````[\P``,Q087)T(&$N,0H)[X(``0`!``$```````````#O(&YU;6)E
- XM<B!T:')E92P@=VAA=&5V97(@=&AA="!I<PKI``0$!`0$Z9OJ9F]O`&)A>NKM
- X'(`!F;V\`[6\`
- X`
- Xend
- END_OF_FILE
- if test 3761 -ne `wc -c <'torture.uue'`; then
- echo shar: \"'torture.uue'\" unpacked with wrong size!
- fi
- # end of 'torture.uue'
- fi
- if test -f 'troff.cfg' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'troff.cfg'\"
- else
- echo shar: Extracting \"'troff.cfg'\" \(5508 characters\)
- sed "s/^X//" >'troff.cfg' <<'END_OF_FILE'
- X# troff configuration file for WP2X.
- X#
- X# Written 12/15/89 by Raymond Chen.
- X#
- X# If you change this file, please make a note of it below
- X# and in the BEGIN string.
- X#
- X# Version 0.0: Initial version.
- X# Version 1.0: COMMENT tag added 23-Jul-1991.
- X# Version 1.1: Improved comments, assorted new tags.
- X# Version 1.2: New output scheme.
- X#
- X# Known bugs (err... design decisions).
- X#
- X# No attempt is made to insert \& at the start of every text line.
- X# So beware of lines that happen to begin with a period or an apostrophe.
- X#
- X
- X# At the beginning of the file, we put in some identification.
- XBEGIN=".\\\" This file was created by the WP2X program, using a troff
- X.\\\" descriptor file (Version 1.2) written by Raymond Chen.
- X.\\\"
- X.\\\" Do not expect everything to be converted perfectly.
- X.\\\"
- X.\\\" The macro `hd' is our header, and `fo' is our footer. By default,
- X.\\\" they do nothing (yet). These macros are intentionally crude (they
- X.\\\" don't preserve the environment or anything) because you'll probably
- X.\\\" end up hand-editing them anyway.
- X.de hd
- X'sp 1
- X..
- X.de fo
- X'sp 1
- X..
- X.wh 0 hd
- X.wh -1 fo
- X.\\\"
- X.\\\" Conditional page eject macro.
- X.de CP
- X.ne \\\\$1/2u
- X..
- X"
- X
- X# At the end of the file, we close up some tags.
- XEND="%\n.\\\"
- X.\\\" End of file
- X"
- X
- XComment="%\n.\\\" "
- Xcomment="\n"
- X
- X# Protect magic characters.
- X'\\'="\\e"
- X
- X# Now the actual code expansions.
- X
- XPageNo="%%" # insert page number (only works in head/footers)
- XRomanPage="%\n.pn %1\n.af %% i\n" # set roman numerals
- XArabicPage="%\n.pn %1\n.af %% 1\n" # set arabic numerals
- X
- XHSpace="\\ " # Unbreakable space
- X
- XTab="\t" # Leave tabs as is.
- XBeginTabs="%\n.ta "
- XSetTab="%1 "
- XSetTabCenter="%1C "
- XSetTabRight="%1R "
- XSetTabDecimal="%1d "
- XEndTabs="\n"
- X
- XHPg="%\n.bp\n" # Hard page forces a new page
- XCondEOP="%\n.CP %1\n" # Conditional end-of-page
- X
- XHRt="%\n.br\n" # Hard return.
- XSRt="%\n" # Soft return is a newline
- X
- X-="-" # Hyphens are hyphens
- X--="-\\c\n" # Hyphen at the end of a line gets a \c
- X=="-" # Nonbreaking hyphen (does it exist?)
- X\-="\\%%" # Discretionary hyphen
- X\--="\\%%\\c\n" # Discretonary hyphen at the end of the line
- X
- X# Margins are left as comments, since changing the margin on the fly
- X# is tricky.
- XMarg="%\n.\\\" left margin %1, right margin %2\n"
- XTopMarg="%\n.\\\" top margin %1\n" #$$
- XPageLength="%\n.\\\" page length %1\n" #$$
- X
- X# There is no way to do fractional spacing without playing with .vs
- XSS="%\n.ls 1\n"
- X1.5S="%\n.\\\" Switch to 1.5 spacing\n"
- XDS="%\n.ls 2\n"
- XTS="%\n.ls 3\n"
- XLS="%\n.\\\" Switch to %1/2 spacing\n"
- XLPI="%\n.\\\" Change to %1 lines per inch\n"
- X
- XBold="\\fB" # Boldface
- Xbold="\\fP"
- XUnd="\\fI" # Underlining uses italics
- Xund="\\^\\fP" # insert italic correction
- XRed="\\f(RE" # Change `RE' to your redline font
- Xred="\\fP"
- XStrike="\\f(ST" # Change `ST' to your strikeout font
- Xstrike="\\fP"
- XRev="\\f(RV" # Change `RV' to your reverse font
- Xrev="\\fP"
- X
- X# Overstriking is nasty because WP puts the overstrike code AFTER
- X# the character being overstruck. So we can't use the \o'...' service.
- XOver="\\h'-\\n(.wu'"
- Xover=""
- X
- X# Super and subscript are done by \u and \d. If you want, use \v instead.
- XSup="\\u"
- Xsup="\\d"
- XSub="\\d"
- Xsub="\\u"
- X
- XUpHalfLine="\\u"
- XDownHalfLine="\\d"
- XAdvanceToHalfLine="?" #$$
- X
- XIndent="%\n.in +0.5i\n" # Indented paragraph
- XDIndent="%\n.in +0.5i\n" # not really, but we have to do it this way.
- Xindent="%\n.in -0.5i\n" # so that this works
- XMarginRelease="\\h'-%1'"
- X
- XCenter="%\n.ce 1\n"
- Xcenter="%\n"
- X
- X# FlushRight
- X# flushright
- X
- XFn="%\n.FS\n" # Go write your own
- Xfn="%\n.FE\n" # footnote and
- XEn="%\n.ES\n" # endnote
- Xen="%\n.EE\n" # macros
- XFNote#="" # Note numbers should be automatically generated.
- XENote#=""
- X
- X# Other random parameters
- XHyph="%\n.hy\n"
- Xhyph="%\n.nh\n"
- XNoHyphWord="\\%%" # Suppress hyphenation of next word
- XJust="%\n.ad\n"
- Xjust="%\n.na\n"
- XWid="%\n.\\\" Widow protection on\n"
- Xwid="%\n.\\\" Widow protection off\n"
- X
- X# Headers and footers. These are totally bogus definitions, since
- X# they'll have `.' instead of apostrophes, but the purpose is to do
- X# some sort of conversion AT ALL.
- XHeader="%\n.de hd\n" # new header macro
- Xheader="%\n..\n" # (totally bogus)
- XFooter="%\n.de fo\n" # new footer macro
- Xfooter="%\n..\n" # (totally bogus)
- X
- X# These guys are left as comments, since actually doing them right
- X# requires all sorts of icky things I'd rather not think about.
- XSupp="%\n.\\\" Suppress headers and footers on this page\n"
- XCtrPg="%\n.\\\" Center this page vertically\n"
- XSetFont="%\n.\\\" Change to %1 pitch, font %2\n"
- XSetBin="%\n.\\\"%% Change to paper bin %1\n"
- X
- X# Page numbering
- XPN0="%\n.de hd\n.tl ''''\n..\n.de fo\n.tl ''''\n..\n"
- XPN1="%\n.de hd\n.tl '%%'''\n..\n.de fo\n.tl ''''\n..\n"
- XPN2="%\n.de hd\n.tl ''%%''\n..\n.de fo\n.tl ''''\n..\n"
- XPN3="%\n.de hd\n.tl '''%%'\n..\n.de fo\n.tl ''''\n..\n"
- XPN4="%\n.de hd\n.if e .tl '%%'''\n.el .tl '''%%'\n..\n.de fo\n.tl ''''\n..\n"
- XPN5="%\n.de hd\n.tl ''''\n..\n.de fo\n.tl '%%'''\n..\n"
- XPN6="%\n.de hd\n.tl ''''\n..\n.de fo\n.tl ''%%''\n..\n"
- XPN7="%\n.de hd\n.tl ''''\n..\n.de fo\n.tl '''%%'\n..\n"
- XPN8="%\n.de hd\n.tl ''''\n..\n.de fo\n.if e .tl '%%'''\n.el .tl '''%%'\n..\n"
- END_OF_FILE
- if test 5508 -ne `wc -c <'troff.cfg'`; then
- echo shar: \"'troff.cfg'\" unpacked with wrong size!
- fi
- # end of 'troff.cfg'
- fi
- echo shar: End of archive 1 \(of 3\).
- cp /dev/null ark1isdone
- MISSING=""
- for I in 1 2 3 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 3 archives.
- rm -f ark[1-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-
- exit 0 # Just in case...
-